package com.wwtech.epp.ui.activity.mine.module;

import com.wwtech.epp.data.api.HttpAPIWrapper;
import com.wwtech.epp.ui.activity.base.ActivityScope;
import com.wwtech.epp.ui.activity.mine.NewMessageInformActivity;
import com.wwtech.epp.ui.activity.mine.contract.NewMessageInformContract;
import com.wwtech.epp.ui.activity.mine.presenter.NewMessageInformPresenter;

import dagger.Module;
import dagger.Provides;

/**
 * @author hzp
 * @Package com.wwtech.epp.ui.activity.mine
 * @Description: The moduele of NewMessageInformActivity, provide field for NewMessageInformActivity
 * @date 2017/09/04 11:52:10
 */
@Module
public class NewMessageInformModule {
    private final NewMessageInformContract.View mView;


    public NewMessageInformModule(NewMessageInformContract.View view) {
        this.mView = view;
    }

    @Provides
    @ActivityScope
    public NewMessageInformPresenter provideNewMessageInformPresenter(HttpAPIWrapper httpAPIWrapper, NewMessageInformActivity mActivity) {
        return new NewMessageInformPresenter(httpAPIWrapper, mView, mActivity);
    }

    @Provides
    @ActivityScope
    public NewMessageInformActivity provideNewMessageInformActivity() {
        return (NewMessageInformActivity) mView;
    }
}